package com.css.zfzx.sjcj.modules.hddcB1GeomorPlyOnFractBlt.repository;

import com.css.zfzx.sjcj.modules.hddcB1GeomorPlyOnFractBlt.repository.entity.HddcB1GeomorplyonfractbltEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zhangcong
 * @date 2020-11-30
 */
public interface HddcB1GeomorplyonfractbltRepository extends JpaRepository<HddcB1GeomorplyonfractbltEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_a1_literaturedocumenttable where is_valid =1 and project_name in :projectIds")
    List<HddcB1GeomorplyonfractbltEntity> queryByProjectId(List<String> projectIds);

    @Query(nativeQuery = true, value = "select * from hddc_a1_literaturedocumenttable where is_valid =1 and task_name in :taskIds")
    List<HddcB1GeomorplyonfractbltEntity> queryByTaskId(List<String> taskIds);
}
